
import {createRouter,createWebHistory}  from "vue-router";


export const routes = [
  //配置默认的路径，默认根据app.vue的router-view跳转显示登录页
  // { path: "/", component: () => import("../views/views_1/index1.vue") },
  { path: "/about", component: () => import("../views/views_1/about.vue") },
  { path: "/chat", component: () => import("../views/Chat/index.vue") },
  { path: "/", redirect:'/Mobile/mobileView/test1' },
  { path: "/Mobile",
    children: [
      {
        path: "mobileView/test1",
        component: () => import("../views/Mobile_app/index1.vue"),
      },
    ],
  },
];

const router = createRouter({
  history:createWebHistory(),
  // scrollBehavior: () => ({ y: 0 }),
  routes //指定路由列表
});
export default router;
